package com.mx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author MinXu
 * @since 2021-07-28
 * QQ   754647431
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 如果是文章 则为0  问答为1
     */
    private Integer ctype;

    /**
     * 评论所在文章
     */
    private Integer aid;

    /**
     * 评论者id
     */
    private String masteruid;

    private Date date;

    /**
     * 被评论者id
     */
    private String touid;

    /**
     * 如果是首评 则为0  否则为1
     */
    private Integer cid;

    /**
     * 评论内容
     */
    private String content;


}
